var app = angular.module('ZJPC');

app.controller('IcardDetailController', ['$scope', '$state','$uibModalInstance', '$http', 'DataService','data', function($scope, $state, $uibModalInstance, $http, DataService,data) {

    $scope.showLoading = true;
	console.log(1,data)

    $scope.cancel = function() {
      $uibModalInstance.dismiss('cancel');
    };

    DataService.getCardDetail(data.sklsh,data.ly,callback)
    $scope.skdd = data['skdd']
    $scope.xm = data.xm;

    function callback(result){
        $scope.showLoading = false;
        console.log(123,result)
    	$scope.data = result[0];
    }

    $scope.baseInfo = function(){
		var url = $state.href('app.file.perfile.basic',{xm:data.xm,jid:data.xhgh});
	  	window.open(url,'_blank');
	}

}]);
